package view.components
{
	import assets.view.components.ThumbnailViewSymbol;
	
	import flash.display.Graphics;
	
	import model.vo.ViewVO;

	public class ThumbnailView extends ThumbnailViewSymbol
	{
		public static const NAME:String 				= "ThumbnailView";
		public static const CLICKED:String				= NAME + "Clicked";
		
		private var viewData:ViewVO;
		
		public function ThumbnailView()
		{
		}
		
		public function init( viewVO:ViewVO ):void
		{
			videData = viewVO;
			
			setThumbnailViewProperties();
			buildThumbnailView();
		}
		
		private function setThumbnailViewProperties():void
			
		{
			
		}
		
		private function buildThumbnailView():void
		{
			paintBckgrd();
		}
		
		private function paintBckgrd():void
		{
			var g:Graphics = bckgrdContainer.graphics;
			g.clear();
			g.beginFill( viewData.THUMBNAIL_BCKGRD_COLOR, 1 );
			g.drawRect( 0, 0, viewData.THUMBNAIL_WIDTH, viewData.THUMBNAIL_HEIGHT );
			g.endFill();
		}
	}
}